package com.zhuzi.common.utils;

import java.math.BigDecimal;

public class SysNumberUtils extends cn.hutool.core.util.NumberUtil {

    /**
     * 比较大小，  min ＜ 给定参数 ≤max
     */
    public static boolean isLessAndGreaterOrEqual(final BigDecimal value, final BigDecimal minInclude, final BigDecimal maxInclude) {
        boolean less = isLess(minInclude, value);
        boolean greaterOrEqual = isGreaterOrEqual(maxInclude, value);
        return less && greaterOrEqual;
    }
}
